Skip to content

Add test result summary badge and GitHub Codespaces badge to README#3

Merged
HackXIt merged 2 commits intomainfrom
copilot/improve-readme-with-badges
Mar 12, 2026
Merged

Add test result summary badge and GitHub Codespaces badge to README#3
HackXIt merged 2 commits intomainfrom
copilot/improve-readme-with-badges

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 12, 2026

README lacked a live test result indicator and a quick entry point for Codespaces.

README

  • Added shields.io endpoint badge showing per-run pass/fail counts (e.g. 42/42 passed or 40/42 passed, 2 failed)
  • Added standard Codespaces badge linking to codespaces.new/HackXIt/42vienna-robotframework-workshop

robot-tests.yml

  • Parses results/output.xml post-run via robot.api.ExecutionResult and writes docs/badge.json in shields.io endpoint format
  • Commits docs/badge.json back to main on push (skipped on PRs); paths-ignore on docs/badge.json prevents workflow loops
  • Added contents: write permission

docs/badge.json

Seed file with "unknown" state so the badge renders immediately. Since docs/** already triggers the Pages deploy workflow, each badge commit auto-redeploys to https://hackxit.github.io/42vienna-robotframework-workshop/badge.json.

{"schemaVersion": 1, "label": "tests", "message": "42/42 passed", "color": "brightgreen"}

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: HackXIt <1595680+HackXIt@users.noreply.github.com>
Copilot AI changed the title [WIP] Update README to include badges for test results and codespace Add test result summary badge and GitHub Codespaces badge to README Mar 12, 2026
@github-actions
Copy link
Copy Markdown
Contributor

✅ Robot Framework Test Results

Status: All tests passed!

Test Output (last 10 lines)
==============================================================================
Tests.Student Exercises                                               | PASS |
2 tests, 2 passed, 0 failed
==============================================================================
Tests                                                                 | PASS |
27 tests, 27 passed, 0 failed
==============================================================================
Output:  /home/runner/work/42vienna-robotframework-workshop/42vienna-robotframework-workshop/results/output.xml
Log:     /home/runner/work/42vienna-robotframework-workshop/42vienna-robotframework-workshop/results/log.html
Report:  /home/runner/work/42vienna-robotframework-workshop/42vienna-robotframework-workshop/results/report.html

✅ Robocop Code Quality

Status: No issues found.

Robocop Output
No issues found.

Full results (log.html, report.html) are available as build artifacts.

@HackXIt HackXIt marked this pull request as ready for review March 12, 2026 12:02
@HackXIt HackXIt merged commit afef540 into main Mar 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants